A 4-month-old infant, born at 34 weeks gestation, presents with an intermittent bulge in his right groin that becomes more prominent when he cries. The examination reveals a smooth, firm mass emerging from the external inguinal ring that is easily reducible. What is the most appropriate next step in management?