Make a mesh inside another mesh appear over the the outer mesh
For Cycles I use this setup (not mine, but I can't remember where i found it) :



You can also use Freestyle, it's a different approach but gives a lot of control over the edge style, thickness etc.