Add $dume, execute on method

Allows an arbitrary callback to be invoked prior to the real method executing.

I added this out of a desire to log a custom message when the method is invoked, instead of the default behavior of `$duml`. I could envision it being used for other things, so I'm submitting it here.