The treatment for gray baby syndrome involves the immediate cessation of chloramphenicol. Supportive care in a neonatal intensive care unit may be necessary, including measures like dialysis to help clear the drug from the infant's system. In some cases, exchange transfusions have been used to quickly reduce drug levels. The focus is on managing symptoms and stabilizing the infant's condition.