Just visit the original definition and evaluate it.
If you need to, you can run a second instance of Emacs to find the code: C-h f beep RETand follow the link to the source code.
(I usually say find-function, but in this case, beep is an alias, and after the link you get to the string defalias, while the find function goes to the source definition.)
phils source
share