From experience it's not a great idea to tell ATC before you're really on top of the engine failure e.g. flying, profile, checklists etc - from a few experiences around the world as soon as you mention it to ATC you can expect many, many interruptions for information requests, even if you say "standby" etc.