Logging a users ip address

is there an easy way of logging a users ip address via ruby?