If you look at your 'debug function and compare it to the source of '??, you'll see what you would have needed to do differently:
??: func [
{Prints a variable name followed by its molded value. (for debugging)}
'name
][
print either word? :name [head insert tail form name reduce [": " mold name: get name]] [mold :name]
:name
]