Once I showed a boss' hitpoints with a red floating text on it
Romek's solution I would say is the best, but the hardest.
The floating text is the easiest, but is meh.
You could also just allow the user to type -hp to show the unit's HP.
This isn't exactly what you want, but it works.