CLEVELAND — Justin Masterson began the season as the Indians’ ace. He’ll end it with a different team in a different league.

Cleveland traded the disappointing Masterson on Wednesday to the St. Louis Cardinals, a deal that will allow the Indians to get something in return for the 29-year-old righty who was in his final year under contract.

“I was surprised,” Masterson said. “It’s bittersweet. I’m sad to leave the fellas and the fight we’re making here in Cleveland, but I’m excited to get to St. Louis and be a part of what they have going there.”

In exchange for Masterson, who was scheduled to come off the disabled list later this week, the Indians got outfielder James Ramsey. A first-round pick by the Cardinals (No. 23 overall) in 2012, Ramsey has spent this season at Double-A Springfield, where he batted .300 with 13 home runs and 36 RBIs.

Masterson went 14-10 last season and then turned down an offer of a contract extension in spring training.

“It’s an extraordinarily difficult day for us,” Indians general manager Chris Antonetti said. “It wasn’t an easy decision, but it’s one that made sense.”

Masterson is 4-6 with a 5.51 ERA in 19 starts this season and has had a noticeable loss in velocity. In five starts before being placed on the DL with right knee inflammation, he allowed 19 runs and 27 hits in 18 innings.

Scully to return for 66th season as announcer: In Los Angeles, Vin Scully poked fun at himself after the announcement that he will return for his record 66th season in the Dodgers’ broadcast booth.

He joked on Wednesday that it’s a long time to be working at one job without advancement. The 86-year-old Hall of Fame announcer also said it’s a privilege to be calling games after all these years.

Scully said that at his age he’s hoping to return in 2015 and notes next April is a long time from now.

The Dodgers revealed the news Tuesday night, when talking microphones featuring Scully were given away to fans. The crowd reacted with a standing ovation for Scully, who waved from his booth.

He said he doesn’t feel like he’s done anything and that he just happens to be at the games.

Diamondbacks infielder Chavez retires: In Phoenix, Diamondbacks infielder Eric Chavez announced his retirement Wednesday, ending his 17-year major league career at the age of 36.

The left-handed hitting infielder, on the disabled list since June 9 because of a sprained left knee, spent 13 seasons with the Oakland Athletics, two with the New York Yankees and was in his second season with Arizona.

Chavez won six AL Gold Gloves from 2001-2006.

In 1,615 career regular-season games, he hit .268 with 260 home runs and 902 RBIs. This season, he hit .246 with three homers and eight RBIs in 69 at-bats.

Chavez appeared in 1,402 games at third base, 21 at first base, five at shortstop and two in left field. He had a career .970 fielding percentage at third base and was the 2002 AL Silver Slugger winner at the position.

He was selected by Oakland in the first round of the 1996 draft out of Mount Carmel High School in San Diego and made his major league debut for the A’s in 1998.

Rangers outfielder Rios hit on quadriceps: In Arlington, Texas, Rangers right fielder Alex Rios left the game Wednesday after getting hit by a pitch on the left quad. The Rangers called the move precautionary.

Rios, considered a potential trade possibility before Thursday’s nonwaiver trading deadline, stayed in the game to run after getting hit by a pitch thrown by Hiroki Kuroda in the third inning.

But when Texas took the field for the start of the fourth, Daniel Robertson replaced Rios in right field.

Red Sox trade Doubront to Cubs: The Boston Red Sox traded left-hander Felix Doubront to the Chicago Cubs for a player to be named.

The 26-year-old Doubront was 2-4 with a 6.07 ERA in 17 games. He began the season in the rotation and was moved to the bullpen in late June.

Dodgers complete trade with Cubs: In Los Angeles, the Dodgers completed their trade with the Cubs, sending minor league pitcher Jonathan Martinez to Chicago and optioning infielder Darwin Barney to Triple-A Albuquerque.

Barney was acquired by the Dodgers in Monday’s trade.

The Gold Glove winner in 2012 played second base, third base and shortstop in five seasons with the Cubs, but they cut him loose after he hit .230 with 16 RBIs in 72 games this season.

Martinez, a 20-year-old right-hander, was 7-5 with a 3.47 ERA in 19 starts for Class A Great Lakes this season.