I don't know about cuba specifically, but for a majority of conditions most major cities in the world have good, modern medical care available. I have first-hand experience of this on at least seven countries on three continents just on incidental medical needs, and know others who have described much the same experience in several countries I've never visited. Compared to the US, prices are quite low across the board, even for non-citizens who have to pay out of pocket, due to the unique way the various US industries involved in healthcare have dramatically driven up prices. Medical tourism is sometimes even worth it for people who have insurance.
What kind of problems were you getting addressed, though? It's mainly an issue when you're getting major surgery or treating something serious like cancer. Cuban doctors don't have access to the same suite of diagnostic tools US doctors have. They're probably fine if you need your blood pressure meds adjusted, but how likely is it you'll get an MRI if you need one?
There's a hospital in Bangkok named Bumrungrad that is set up for medical tourism. From what I hear it provides world class care, including diagnostics. But it's almost as expensive as going to a hospital in the US once all your costs are accounted for.