Depends how invested you are in success. If I wanted to do this, I'd take the just-revived hero, turn off alarms for it, use the "Disable Ability for Player" action to hide all its current abilities, and with each ability, replace it with a dummy spell shield with the same icons/tooltips/cooldowns, instantly have a hostile dummy caster use an ability on the hero to activate the cooldown for that icon, and start a timer elapsing with the same time as the cooldown for that ability to replace it with the original when the cooldown ends, and finally re-enable alarms. That's a pretty jumbled way to express it, but I'm not inclined to elaborate because it would take a while.
I wouldn't want to do this for every hero in a map, but other than not being able to see/level the hidden abilities, I don't anticipate any problems.