getting function parameter names



I know how to print the values of all parameters passed to function in
a generic way.

Is there any way to get the names of the parameters too?

I would like a simple piece of code which I can paste into all major
functions to allow them to print the names and values of their
parameters; the code should work unchanged will all functions.

Thanks in advance

.