We went to both of these ports on Freedom a couple of years ago.
In a Colon we docked at the Colon 2000 terminal and you could do an excursion to the locks or beyond. The Fantasy class ships might be able to do a partial transit, not sure. The new locks open next year, if you cruise after that it might also do a partial transit.
Limon is a true backwater. We docked next to a banana boat. There was only a little flea market across the way. On the other hand if you like local crafts this could be a good place to shop.
All I ask is a tall ship and a star to steer her by; John Masefield
Carnival: Glory 2004, Destiny 2008, Splendor 2009, Freedom 2011, Valor 2012, Dream 2013
Celebrity: Summit 2011
Princess: Ruby 2010, 2014, Caribbean 2013, Coral 2014, Regal 2014, 2016
Sail Windjammer: Mandalay 2017
Star Clippers: Royal Clipper 2015