A semi-affectionate term for someone who is being or has done something a tad silly.
Why'd you do that, ya doodle farmer!