You can raise a notice in Postgres as follows:

raise notice 'Value: %', deletedContactId;

Read here