Manual:$wgDebugFunctionEntry/en

Details
Whether to additionally output a debug message on every $1 and $2 call.

You also need to use a non-stub profiler to get these messages, see Manual:Profiling for more information about this.