BALTIMORE (AP) The Tampa Bay Rays are looking toward Wilson Ramos to help them put a positive ending on a disappointing season.

Ramos hit his third career grand slam , Evan Longoria also went deep and Tampa Bay throttled Ubaldo Jimenez in an 8-3 victory over the Baltimore Orioles on Friday night.

Signed as a free agent in December, Ramos didn't make his debut until late June after working his way back from knee surgery. Since Aug. 15, he's batting .359 with six homers and 16 RBIs over 27 games.

''It's taken a little bit of time for him to get his timing,'' manager Kevin Cash said. ''He's kind of had the roller coaster a little bit, but as of late you can see the impact he can have at the plate for us.''

With Ramos leading the way, the Rays interrupted a 4-9 slide and kept alive their slim playoff hopes.

''A lot of excitement for the next couple days here to finish strong,'' Cash said, ''and going in knowing we have a force behind the plate with the bat.''

Ramos connected in the second inning and Longoria homered in the third for a 5-2 lead. Both drives came off Jimenez, who likely pitched his final home game with the Orioles following a rocky four-year stint.

Jimenez (6-11) gave up six runs and eight hits in three innings. He was booed lustily by the home fans after each Tampa Bay home run.

Since signing his $50 million contract in 2014, Jimenez has at times been effective. Mostly though, he's been a disappointment.

Jimenez has a 6.81 ERA this season after bouncing between the rotation and the bullpen. He's 2-4 with a 7.86 ERA at Camden Yards, and the fans have been anything but forgiving.

If this was his last outing at home in a Baltimore uniform, well, he can live with that.

''Whatever is happening, I just thank God every time for giving me the courage to be here so long, and whatever happens I'm just going to go with it,'' he said.

The right-hander's only winning season with the Orioles came in 2015, when he went 12-10, and he's 32-42 overall with Baltimore.

''It's had its ups and downs of course,'' Jimenez said. ''But being here in this clubhouse with such a great group of guys is something that I'm always going to take with me. Nothing is going to erase that.''

After a 1-2-3 first inning, Jimenez hit a batter on an 0-2 pitch to open the second and gave up successive singles to load the bases for Ramos, who lined a shot over the wall in left-center.

''It's awesome. It was an amazing moment for us,'' Ramos said. ''It's good for the team to start a game with a grand slam.''

That was enough offense for Alex Cobb (12-10), who allowed three runs and nine hits in six innings to reach a career high in wins.

Chris Davis hit his 25th home run for Baltimore. The defeat left the Orioles at 74-81, so they will have to win their final seven games to avoid their first losing season since 2011.

RECORD BOOK FODDER

Rays: Tampa Bay has hit 216 home runs this season, matching the club record set last season. Ramos almost hit No. 217, but a replay on his eighth-inning drive reversed the original call of a homer into a double.

Orioles: Adam Jones had two hits to up his total with Baltimore to 1,615 and move past Brady Anderson into fourth place on the team list. ... With his 224th HR as an Oriole, Davis moved past Rafael Palmeiro into sole possession of sixth place on the team's career list.

TRAINER'S ROOM

Orioles: Closer Zach Britton had a stem-cell injection into his ailing left knee. Asked to assess the chances of Britton pitching again this season, manager Buck Showalter said, ''There's that possibility. I'm not going to handicap it.''

UP NEXT

Rays: RHP Jake Odorizzi (9-8, 4.46 ERA), who is 1-0 with a 6.10 ERA in two starts against Baltimore this season, starts for Tampa Bay on Saturday night.

Orioles: Jeremy Hellickson (2-5, 7.29 ERA), who pitched for the Rays from 2010-14, makes his first career start against Tampa Bay. He was obtained by Baltimore from the Phillies shortly before the July 31 non-waiver trade deadline.

---

More AP baseball: https://apnews.com/tag/MLBbaseball

Copyright 2017 by STATS. Any commercial use or distribution without the express written consent of STATS is strictly prohibited.