I would steer away from anything that masks or drugs the dog.
I don't know what type dog it is but I have had success using a wind up clock wrapped in a towel to let her / him think there is something else there with it.
Is it possible the dog knows you aren't really going very far away? Are you just outside a door listening to see if it quiets down?
Maybe someone has a better idea??????