A 5-week-old bottle-fed baby boy is brought with projectile non-bilious vomiting after feeds for 1 week. He seems hungry after vomiting and has lost weight. Examination reveals visible peristalsis and a small, firm mass in the right upper abdomen. Blood tests show hypochloraemic, hypokalaemic metabolic alkalosis. What is the most appropriate next step in management?