Create functions for debugging purposes

Add `debug_print/1', `debug_print/2', `debug_apply/3'
functions that can be called inside instrumented code.