I guess time will tell, but it would make sense why Boston just let him walk only to replace him with a player 10 years his senior and who costs 1.5x as much.
Both Toronto and Boston have recently thought that Foligno is still the very good player he was a couple years ago - a guy who can be defensively effective in big minutes against elite competition, while still contributing a bit of offense too. Toronto gave up a 1st rounder for that and Boston signed him to a 2yr mid money deal for that.
But he didn't look like that kind of player last year, either for columbus or for Toronto, so we'll see if he can get back to that for Boston the next couple years.
Ritchie is what he is - a guy with solid puck skills and physical presence, but quite slow. He's been a solid middle 6 winger - a guy you ideally want as your #4/5/6 winger. At this point Toronto is looking for a #3 winger, though, and Ritchie might get that opportunity first even though he's probably not good enough to fill that role successfully. But, the leafs have a bunch of other options to fill that role if he doesn't - Kase, Kerfoot, Mikheyev, Robertson, Bunting, Spezza all have a chance of being that guy.