Set default field value when adding new records

Set default field value when adding new records

Hi, we need to set default values to some standard fields when adding new records within a custom module,  because of these fields are marked as mandatory, we must fill in whatever value but in our case, anything is valid. In order to automate the process, is there any chance to set a default value?