[ruby] How to find a hash key containing a matching value