Just to make sure we remove the newline and make this support conversion to an integer, I'd do:

```ruby
def get_guess 
  puts "Enter a guess"
  gets.strip.to_i
```

You also don't need a return, in Ruby the last line is what's returned.