A 9-month-old boy presents with intermittent episodes of severe crying, drawing up of the legs, and vomiting. His parents report 'red jelly-like' stool. On examination, there is a palpable sausage-shaped mass in the right upper quadrant. What is the most appropriate next step in management?