How to access deleted term inside delete_product_cat action

I want to run some code after a product category is deleted, in that function I want to access the name of the deleted category, and according to their docs I could do this:

add_action('delete_product_cat', 'sync_cat_delete', 10, 1);  function sync_cat_delete($  term, $  tt_id, $  deleted_term, $  object_ids){     var_dump($  deleted_term); } 

But when I do it, I get 500 internal server error

So what could be the issue?

Thanks