Currently for my scientific experiments I use
dbg = print
# def dbg(*args): pass
So I have a lot of dbg(x, y, f(x)) in code, all of which I can "turn off" my commenting one line and uncommenting another.
However, the output looks brief, e.g. 0 15 32.
Is there a way to make it look like x = 0, y = 15, f(x) = 32?
I tried to write something using eval, but couldn't.