The details are beyond me--but are pretty draconian--its a 5 year lookback from the date of application for Medicaid--and a large gift likley creates a massive time frame of future disqualification --yet a gift made 5 years and 1 day before application is "safe" so sometimes it pays to wait out the time frame before application. I think the disqualification time is LONGER than suggested above --it runs from date of application forward, not the earlier date of gift.
In hindsight there were probably smarter ways to pay off the debt ---by creating an obligation to pay it instead of paying it as a gift
The rules as to not counted assets--such as a home --require attention to details --and there may be ways to preserve such assets (but stay clear of the folks who sell miracle cures at a high price for such "information.")--a spouse living in the home probably protects it --and might a long term live in care giver under some condition where the care giver provided for multiple essential functions. (The rules provide a bit of an incentive to try to delay instutional care by home care --but details count.) .
As above, one would need to be quite impoverished, down to counted asset level of about $2000
And applicant would need to have a rather low counted income stream --in some cases SS could be put into a trust to help bring counted income levels down
Groups such as AARP probably have some very useful guides on points--do some homework ---but for anything that is not crystal clear--double check with a seasoned elder care attorney. And above all do NOT make application for Medicaid or fill out a bunch of financial forms for some care facility until you are quite sure you understand the applicable rules.