Injection of local anesthetic drugs is an effective way to freeze (block) nerves to achieve loss of sensation during surgery and satisfactory pain control afterwards. Many studies have shown that nerve block is associated with higher degree of success in controlling pain after open inguinal hernia repair. Nerve block can be administered by a single injection with a long acting local anesthetic agent using ultrasound guidance. This study is to compare different techniques for freezing the nerves responsible for pain after open inguinal hernia repair. Patients will be randomized to one of two groups. In the first group, participants will receive ultrasound-guided nerve block following induction of general anesthesia but prior to surgical procedure. In the second group, participants will receive local anesthetic injection directly into the wound by the surgeon prior to closure. The investigators will assess the level of pain control for 48 hours after the surgical procedure. Patients will be provided with additional medications for pain relief if necessary. The investigators will also contact participants to follow-up with regard to possible chronic groin pain after 3 months following the surgical procedure.