MIAMI -- Hanley Ramirez returned to Florida with the kind of game that won him a batting title three years ago for his former team.

With three hits, two RBIs and a run scored, Ramirez led the Dodgers to a 5-2 win over the Marlins, hearing more cheers from the fans that remember the good times than boos from those who felt he underachieved in recent years.

"It's OK," Ramirez of the boos. "I have a lot of love for them. "We won, thank God, and we come back tomorrow and try to win the series."

Ramirez drove in the tie-breaking run in a four-run sixth inning and had an infield RBI single after the Marlins walked Matt Kemp to load the bases to get to Ramirez.

"I would do it too," Ramirez said of the strategy. "I'm hitting .240. But I've been feeling good at home plate."

Before the game, Ramirez said he was glad to be back. Not because he was playing his former Marlins teammates or playing in his former new stadium.

"It's a wonderful day. I'm with my family," said Ramirez, who hadn't seen his family since the July 25 trade that brought him and Randy Choate to the Dodgers for Nathan Eovaldi and Minor Leaguer Scott McGough.

The reception his first at-bat was mixed, and as the game proceeded and Ramirez's hits added up, the boos grew louder.

"I kind of stepped back just to give him his moment, I guess, to tip his hat, but he got booed too much, he couldn't even do that," said opposing pitcher Mark Buehrle. "That's the type of hitter he is. He's been struggling all year ... but he's a great hitter and he showed it tonight."

Marlins manager Ozzie Guillen said he wasn't surprised that Ramirez would respond to the emotional return with a big game.

"He's that good," said Guillen. "That kid has so much talent, he can hurt you any time. It's just something I think he needed to change scenarios, and I think it's good for him and his family and he's going to play better for them."

The first awkward moment for Ramirez on Friday was trying to find the visitors' clubhouse in Marlins Park. Ramirez said he would talk to Marlins players later on the field. He was wearing a Dodger Blue T-shirt with the "I See You" image he said he designed.

A three-time National League All-Star and 2009 batting champion, Ramirez repeated trade-day thank-yous for Marlins owner Jeffrey Loria and president David Samson.

"They were very good to me and my family," he said.

Jose Reyes, whose signing shoved Ramirez from shortstop to third base, said he went through a homecoming earlier this year when the Marlins played in New York, and just hoped that Ramirez would go easy on his former teammates.

"Hopefully he cannot do too much damage against our team," Reyes said. "We just want to continue to play our game. We know Hanley plays for another team now, so we wish all the best for him."

Ramirez said he didn't realize until several days after the trade that the schedule would bring him back to Florida so quickly.

"I'm hoping to play three games in one day," he said of the quick homecoming, "but it is what it is."

Other than not winning a World Series, Ramirez said he wouldn't have done anything differently during his time playing for the Marlins.

"Just things didn't go my way," he said. "There were a lot of good things here, even though we didn't do the big thing -- win a championship. There were a lot of good moments here. The people here saw me go from a little baby to a grown-up man."