Wow, I've been using Ruby for a decade and have never run into this. If you are dealing with a codebase written by someone else, then Rubocop probably has a rule for detecting these gotchas. I'd run it across the whole thing and burn down the flags.
Lint/Void: Variable bonus used in void context.
Web search for 'ruby void context' finds a bunch of WTFs.