So, for instance, you might solve it with:
result = case
when baz>10 then foo
else bar
end
This is synthetic, of course. If the goal is to pass around methods, there are lambdas and codeblocks that can be passed around and may fit the problem more naturally than sending yourself a symbol as a message.