You can use:
SHOW CREATE PROCEDURE PROCEDURENAME
Example: