Ryu (4-2), who missed more than three weeks with inflammation in his left shoulder, continued his road dominance this season, going six innings and allowing two runs on nine hits.
The lefty kept the Mets scoreless through his first five innings and extended his road scoreless streak to start the season to 31 innings, the second best mark to begin a campaign in the last 50 years. Only Roger Clemens (35 innings) in 2005 went longer.
Eric Campbell's first career home run produced a pair of New York runs behind Justin deGrom (0-2), who served up all three LA long balls and went six innings in his second career start.
Ryu showed no ill-effects from his DL stint early on, striking out two Mets in the first inning and five in his first time through the order. New York threatened to break through in the third inning with a pair of singles and a walk, but Ryu got Curtis Granderson chasing a high fastball for his sixth strikeout to get out of the frame.
Gonzalez cranked his second homer in as many days to lead off the second inning.
Puig and Ramirez went back-to-back with one away in the sixth, padding the cushion. The runs were pivotal, as Campbell's two-run shot in the home half of the inning broke Ryu's road scoreless streak and pulled the Mets within 3-2.
Chone Figgins opened the eighth inning with a pinch-hit double and later scored to give LA's relievers an insurance run to work with. Figgins moved to third on Dee Gordon's sac bunt and scored when the Mets failed to turn a double-play on Ramirez's dribbler to the mound.
Brian Wilson worked around a single to get through the eighth. Kenley Jansen entered in the ninth and after retiring pinch-hitter Bobby Abreu, served up a Juan Lagares triple. Lagares scored on Daniel Murphy's groundout, but Jansen got David Wright swinging to end it and claim his 13th save.