I wrote a debug macro that prints to the console the passed-in string whenever the global kDebug flag == YES.
kDebug
YES
I need to print out the name
sounds like you were looking for the __PRETTY_FUNCTION__ macro... but the accepted answer is probably a better way to go.
__PRETTY_FUNCTION__