At a traditional onsen or ryokan, never tip the staff. It can cause genuine embarrassment.
If you stayed at a high-end ryokan and want to express extra thanks, a written thank-you note delivered to the okami (innkeeper) is perfect.
Gift culture: a small omiyage (souvenir from your hometown or a previous travel stop) is a thoughtful alternative to cash.